package com.cnvai.cms.javabean.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class GrpArticleimageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GrpArticleimageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAriidIsNull() {
            addCriterion("ARIID is null");
            return (Criteria) this;
        }

        public Criteria andAriidIsNotNull() {
            addCriterion("ARIID is not null");
            return (Criteria) this;
        }

        public Criteria andAriidEqualTo(BigDecimal value) {
            addCriterion("ARIID =", value, "ariid");
            return (Criteria) this;
        }

        public Criteria andAriidNotEqualTo(BigDecimal value) {
            addCriterion("ARIID <>", value, "ariid");
            return (Criteria) this;
        }

        public Criteria andAriidGreaterThan(BigDecimal value) {
            addCriterion("ARIID >", value, "ariid");
            return (Criteria) this;
        }

        public Criteria andAriidGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("ARIID >=", value, "ariid");
            return (Criteria) this;
        }

        public Criteria andAriidLessThan(BigDecimal value) {
            addCriterion("ARIID <", value, "ariid");
            return (Criteria) this;
        }

        public Criteria andAriidLessThanOrEqualTo(BigDecimal value) {
            addCriterion("ARIID <=", value, "ariid");
            return (Criteria) this;
        }

        public Criteria andAriidIn(List<BigDecimal> values) {
            addCriterion("ARIID in", values, "ariid");
            return (Criteria) this;
        }

        public Criteria andAriidNotIn(List<BigDecimal> values) {
            addCriterion("ARIID not in", values, "ariid");
            return (Criteria) this;
        }

        public Criteria andAriidBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ARIID between", value1, value2, "ariid");
            return (Criteria) this;
        }

        public Criteria andAriidNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ARIID not between", value1, value2, "ariid");
            return (Criteria) this;
        }

        public Criteria andAriarticleIsNull() {
            addCriterion("ARIARTICLE is null");
            return (Criteria) this;
        }

        public Criteria andAriarticleIsNotNull() {
            addCriterion("ARIARTICLE is not null");
            return (Criteria) this;
        }

        public Criteria andAriarticleEqualTo(BigDecimal value) {
            addCriterion("ARIARTICLE =", value, "ariarticle");
            return (Criteria) this;
        }

        public Criteria andAriarticleNotEqualTo(BigDecimal value) {
            addCriterion("ARIARTICLE <>", value, "ariarticle");
            return (Criteria) this;
        }

        public Criteria andAriarticleGreaterThan(BigDecimal value) {
            addCriterion("ARIARTICLE >", value, "ariarticle");
            return (Criteria) this;
        }

        public Criteria andAriarticleGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("ARIARTICLE >=", value, "ariarticle");
            return (Criteria) this;
        }

        public Criteria andAriarticleLessThan(BigDecimal value) {
            addCriterion("ARIARTICLE <", value, "ariarticle");
            return (Criteria) this;
        }

        public Criteria andAriarticleLessThanOrEqualTo(BigDecimal value) {
            addCriterion("ARIARTICLE <=", value, "ariarticle");
            return (Criteria) this;
        }

        public Criteria andAriarticleIn(List<BigDecimal> values) {
            addCriterion("ARIARTICLE in", values, "ariarticle");
            return (Criteria) this;
        }

        public Criteria andAriarticleNotIn(List<BigDecimal> values) {
            addCriterion("ARIARTICLE not in", values, "ariarticle");
            return (Criteria) this;
        }

        public Criteria andAriarticleBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ARIARTICLE between", value1, value2, "ariarticle");
            return (Criteria) this;
        }

        public Criteria andAriarticleNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ARIARTICLE not between", value1, value2, "ariarticle");
            return (Criteria) this;
        }

        public Criteria andArititleIsNull() {
            addCriterion("ARITITLE is null");
            return (Criteria) this;
        }

        public Criteria andArititleIsNotNull() {
            addCriterion("ARITITLE is not null");
            return (Criteria) this;
        }

        public Criteria andArititleEqualTo(String value) {
            addCriterion("ARITITLE =", value, "arititle");
            return (Criteria) this;
        }

        public Criteria andArititleNotEqualTo(String value) {
            addCriterion("ARITITLE <>", value, "arititle");
            return (Criteria) this;
        }

        public Criteria andArititleGreaterThan(String value) {
            addCriterion("ARITITLE >", value, "arititle");
            return (Criteria) this;
        }

        public Criteria andArititleGreaterThanOrEqualTo(String value) {
            addCriterion("ARITITLE >=", value, "arititle");
            return (Criteria) this;
        }

        public Criteria andArititleLessThan(String value) {
            addCriterion("ARITITLE <", value, "arititle");
            return (Criteria) this;
        }

        public Criteria andArititleLessThanOrEqualTo(String value) {
            addCriterion("ARITITLE <=", value, "arititle");
            return (Criteria) this;
        }

        public Criteria andArititleLike(String value) {
            addCriterion("ARITITLE like", value, "arititle");
            return (Criteria) this;
        }

        public Criteria andArititleNotLike(String value) {
            addCriterion("ARITITLE not like", value, "arititle");
            return (Criteria) this;
        }

        public Criteria andArititleIn(List<String> values) {
            addCriterion("ARITITLE in", values, "arititle");
            return (Criteria) this;
        }

        public Criteria andArititleNotIn(List<String> values) {
            addCriterion("ARITITLE not in", values, "arititle");
            return (Criteria) this;
        }

        public Criteria andArititleBetween(String value1, String value2) {
            addCriterion("ARITITLE between", value1, value2, "arititle");
            return (Criteria) this;
        }

        public Criteria andArititleNotBetween(String value1, String value2) {
            addCriterion("ARITITLE not between", value1, value2, "arititle");
            return (Criteria) this;
        }

        public Criteria andArisummaryIsNull() {
            addCriterion("ARISUMMARY is null");
            return (Criteria) this;
        }

        public Criteria andArisummaryIsNotNull() {
            addCriterion("ARISUMMARY is not null");
            return (Criteria) this;
        }

        public Criteria andArisummaryEqualTo(String value) {
            addCriterion("ARISUMMARY =", value, "arisummary");
            return (Criteria) this;
        }

        public Criteria andArisummaryNotEqualTo(String value) {
            addCriterion("ARISUMMARY <>", value, "arisummary");
            return (Criteria) this;
        }

        public Criteria andArisummaryGreaterThan(String value) {
            addCriterion("ARISUMMARY >", value, "arisummary");
            return (Criteria) this;
        }

        public Criteria andArisummaryGreaterThanOrEqualTo(String value) {
            addCriterion("ARISUMMARY >=", value, "arisummary");
            return (Criteria) this;
        }

        public Criteria andArisummaryLessThan(String value) {
            addCriterion("ARISUMMARY <", value, "arisummary");
            return (Criteria) this;
        }

        public Criteria andArisummaryLessThanOrEqualTo(String value) {
            addCriterion("ARISUMMARY <=", value, "arisummary");
            return (Criteria) this;
        }

        public Criteria andArisummaryLike(String value) {
            addCriterion("ARISUMMARY like", value, "arisummary");
            return (Criteria) this;
        }

        public Criteria andArisummaryNotLike(String value) {
            addCriterion("ARISUMMARY not like", value, "arisummary");
            return (Criteria) this;
        }

        public Criteria andArisummaryIn(List<String> values) {
            addCriterion("ARISUMMARY in", values, "arisummary");
            return (Criteria) this;
        }

        public Criteria andArisummaryNotIn(List<String> values) {
            addCriterion("ARISUMMARY not in", values, "arisummary");
            return (Criteria) this;
        }

        public Criteria andArisummaryBetween(String value1, String value2) {
            addCriterion("ARISUMMARY between", value1, value2, "arisummary");
            return (Criteria) this;
        }

        public Criteria andArisummaryNotBetween(String value1, String value2) {
            addCriterion("ARISUMMARY not between", value1, value2, "arisummary");
            return (Criteria) this;
        }

        public Criteria andAriurlIsNull() {
            addCriterion("ARIURL is null");
            return (Criteria) this;
        }

        public Criteria andAriurlIsNotNull() {
            addCriterion("ARIURL is not null");
            return (Criteria) this;
        }

        public Criteria andAriurlEqualTo(String value) {
            addCriterion("ARIURL =", value, "ariurl");
            return (Criteria) this;
        }

        public Criteria andAriurlNotEqualTo(String value) {
            addCriterion("ARIURL <>", value, "ariurl");
            return (Criteria) this;
        }

        public Criteria andAriurlGreaterThan(String value) {
            addCriterion("ARIURL >", value, "ariurl");
            return (Criteria) this;
        }

        public Criteria andAriurlGreaterThanOrEqualTo(String value) {
            addCriterion("ARIURL >=", value, "ariurl");
            return (Criteria) this;
        }

        public Criteria andAriurlLessThan(String value) {
            addCriterion("ARIURL <", value, "ariurl");
            return (Criteria) this;
        }

        public Criteria andAriurlLessThanOrEqualTo(String value) {
            addCriterion("ARIURL <=", value, "ariurl");
            return (Criteria) this;
        }

        public Criteria andAriurlLike(String value) {
            addCriterion("ARIURL like", value, "ariurl");
            return (Criteria) this;
        }

        public Criteria andAriurlNotLike(String value) {
            addCriterion("ARIURL not like", value, "ariurl");
            return (Criteria) this;
        }

        public Criteria andAriurlIn(List<String> values) {
            addCriterion("ARIURL in", values, "ariurl");
            return (Criteria) this;
        }

        public Criteria andAriurlNotIn(List<String> values) {
            addCriterion("ARIURL not in", values, "ariurl");
            return (Criteria) this;
        }

        public Criteria andAriurlBetween(String value1, String value2) {
            addCriterion("ARIURL between", value1, value2, "ariurl");
            return (Criteria) this;
        }

        public Criteria andAriurlNotBetween(String value1, String value2) {
            addCriterion("ARIURL not between", value1, value2, "ariurl");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}